-- GENERATED SPELL FOR [High Cultist Zangus] --


function spell0_26655(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26655', 3000, 1)
end

function spell1_26655(pUnit, Event) --@Zeal,Self--
pUnit:FullCastSpellOnTarget(51605,pUnit)
pUnit:RegisterEvent('Sorts_26655', 582, 1)
end

function Sorts_26655(pUnit, Event)
local choix_sorts_26655 = math.random(0, 1)
if choix_sorts_26655 == 0 then
pUnit:RegisterEvent('spell0_26655', 1, 1)
end
if choix_sorts_26655 == 1 then
pUnit:RegisterEvent('spell1_26655', 1, 1)
end
end

function mob26655_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26655', math.random(1500, 3000), 1)
end

function mob26655_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26655_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26655_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26655, 1, 'mob26655_Action')
RegisterUnitEvent(26655, 2, 'mob26655_Leave')
RegisterUnitEvent(26655, 3, 'mob26655_Kill')
RegisterUnitEvent(26655, 4, 'mob26655_Die')
